package com.xbongbong.sys.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 获取组织架构时候的type参数
 * @author kaka
 * @time 2018-9-10 16:56
 */
@Getter
public enum DepartmentTreeTypeEnum {

    /**
     * 只需要部门结构
     */
    DEPARTMENT("department", "enum.departmentTreeType.msg.department"),

    /**
     * 表示需要部门 + 员工
     */
    STAFF("staff", "enum.departmentTreeType.msg.staff");

    /**
     * 类型
     */
    private String type;

    /**
     * 描述
     */
    private String msg;

    DepartmentTreeTypeEnum(String type, String msg) {
        this.type = type;
        this.msg = msg;
    }

    public String getMsg() {
        return I18nMessageUtil.getMessage(msg);
    }
}
